<%-- 
功能：将URL字符串进行encode
 --%>
<%@ tag body-content="empty"%>
<%@ tag import="java.net.URLEncoder" %>
<%@ tag import="java.io.UnsupportedEncodingException" %>
<%@ attribute name="value" required="true"%>
<%
	String newValue=null;
	 try {
           newValue = URLEncoder.encode(value, "utf-8");// gb2312
       } catch (UnsupportedEncodingException e) {
           e.printStackTrace();
       }
	out.print(newValue);
%>